<template>
	<!-- <el-input v-model="form.title" class="w_400"></el-input> -->
	<div class="flex align_items_center">
		<span class="m_r_10">语言切换:</span>
		<el-select v-model="language" @change="getTableData" size="small">
			<el-option :value="0" label="简体"></el-option>
			<el-option :value="1" label="繁体"></el-option>
			<el-option :value="2" label="英文"></el-option>
		</el-select>
	</div>
</template>

<script>
	export default {
		// props: ['language'],
		data() {
			return {
				language: 0
			};
		},
		mounted() {
			this.language = this.$store.getters.getLanguage;
		},
		computed:{
			getlanguage() {
				return this.$store.getters.getLanguage;
			}
		},
		methods: {
			getTableData() {
				// console.log(this.language+'``````````');
				this.$store.commit('setLanguage', this.language)
				this.$parent.getTableData();
			}
		}
	};
</script>

<style>

</style>
